import axios from 'axios'

// 获取热门歌单数据
export const reqGetMusic = (url,method = "GET",data={}) => {
    return axios({
        method,
        url: `http://localhost:3000${url}` ,
        data,
        withCredentials:true,
    });
};

// 获取精选歌单数据
export const reqRecommend  = (url,method = "GET",data={}) => {
    return axios({
        method,
        url: `http://localhost:3000${url}` ,
        data
    });
};

// 获取新歌首发数据
export const reqNewSong  = (url,method = "GET",data={}) => {
    return axios({
        method,
        url: `http://localhost:3000${url}` ,
        data
    });
};
// 获取推荐 MV 数据
export const reqMv  = (url,method = "GET",data={}) => {
    return axios({
        method,
        url: `http://localhost:3000${url}` ,
        data
    });
};


// 获取轮播图
export const reqBanner  = (url,method = "GET",data={}) => {
    return axios({
        method,
        url: `http://localhost:3000${url}` ,
        data
    });
};

// 获取 MV url
export const reqMvUrl  = (url,method = "GET",data={}) => {
    return axios({
        method,
        url: `http://localhost:3000${url}` ,
        data
    });
};
